package org.example;

import java.io.FileReader;

public class BaseException {

    //catch异常 子类在前
    public static void main(String[] args) {
        //必须实现AutoCloseable
            try(FileReader reader=new FileReader("d:/a.txt")){

            }catch (Exception e){
                e.printStackTrace();
            }
    }
}
